<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles"%>


<html>
	<head>
	
		<title><tiles:insertAttribute name="title" ignore="true"/><spring:message code="app.title"/></title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<script type="text/javascript">
			var contextPath = "${pageContext.request.contextPath}";
		</script>	
		
		<link rel="shortcut icon" href="${pageContext.request.contextPath}/resources/media/ico/favicon.ico" type="image/x-icon">
		
		<!-- Load external js -->
		<tiles:useAttribute name="extJs" id="extJs" classname="java.util.List"/>
		<c:forEach var="extJsItem" items="${extJs}">
			<script type="text/javascript" src="<tiles:insertAttribute value="${extJsItem}" flush="true" />"></script>
		</c:forEach>
		
		<!-- Load inner js files -->
		<tiles:useAttribute id="js" name="js" classname="java.util.List" />
		<c:forEach var="jsItem" items="${js}">
			<script type="text/javascript" src="${pageContext.request.contextPath}/<tiles:insertAttribute value="${jsItem}" flush="true" />"></script>
		</c:forEach>
		
		<!-- Load css files -->
		<tiles:useAttribute id="css" name="css" classname="java.util.List" />
			<c:forEach var="cssItem" items="${css}">
				<link rel="stylesheet" href="${pageContext.request.contextPath}/<tiles:insertAttribute value="${cssItem}" flush="true" />" type="text/css">
		</c:forEach>
	</head>
	<body>
		<div class="wrapper">
			<div class="body">
				<div class="header">
					<tiles:insertAttribute name="header" />
				</div>
				<!-- <div class="main"></div> -->
				<div class="colmask leftmenu">
					<div class="colleft">
						<div class="col1">
							<!-- Column 1 start -->
							<tiles:insertAttribute name="body" />
							<!-- Column 1 end -->
						</div>
						<div class="col2">
							<!-- Column 2 start -->
							<tiles:insertAttribute name="menu" />
							<!-- Column 2 end -->
						</div>
					</div>
				</div>
				
				<div class="footer">
					<tiles:insertAttribute name="footer" />
				</div>
			</div>
		</div>
	</body>
</html>